<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		  var myname = prompt('请输入名字');
		  if (myname == '刘德华') {
			  alert('中了5块');
		  }  else {
			  alert('没有中奖');
		  }
		</script>
	</head>
	<body>
	</body>
</html>
